package org.polaris.org.service.impl;

import org.polaris.basic.service.impl.BaseServiceImpl;
import org.polaris.basic.tool.PageResult;
import org.polaris.org.domain.Department;
import org.polaris.org.domain.Employee;
import org.polaris.org.mapper.EmployeeMapper;
import org.polaris.org.query.EmployeeQuery;
import org.polaris.org.service.IEmployeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
@Service
@Primary
@Transactional(readOnly = true, propagation = Propagation.SUPPORTS)
public class EmployeeServiceImpl extends BaseServiceImpl<Employee> implements IEmployeeService {

    @Autowired
    private EmployeeMapper employeeMapper;

    @Override
    public void batchDelete(List<Long> ids) {
        employeeMapper.batchDelete(ids);
    }


}
